package com.mojo.dao;

import com.mojo.config.PrimaryConfiguration;
import com.mojo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 */
@Repository
public class UserDaoImpl2 implements UserDao {
    @Autowired
    User user;
    @Autowired
    User user1;
    @Autowired
    private PrimaryConfiguration pc;

    @Override
    public void getUser() {
        System.out.println("单例bean" + (user == user1));
        System.out.println("pc>>>" + pc);
    }
}
